package a.f.g.a;

import a.c.e;
import a.c.w;

class ic
  implements nc
{
  private int b = 2;
  
  public int a()
  {
    return this.b;
  }
  
  public void a(int paramInt)
  {
    this.b = paramInt;
  }
  
  public y a(cb paramcb, bb parambb, f paramf)
  {
    boolean bool = xb.r;
    int i = xb.q;
    e locale1 = paramcb.p();
    y localy1 = paramcb.a();
    lb locallb = parambb.d();
    double d1 = paramcb.l();
    w localw = locallb.m().v();
    label331:
    do
    {
      if (!localw.e()) {
        break;
      }
      e locale2 = localw.d();
      if (locale2 != locale1)
      {
        cb localcb = locallb.a(locale2);
        if ((bool) || (!localcb.v()))
        {
          y localy2 = localcb.a();
          double d2 = localy1.d() - localy2.d();
          double d3 = localy1.f() - localy2.f();
          double d4 = localy1.g() - localy2.g();
          double d5 = Math.sqrt(d2 * d2 + d3 * d3 + d4 * d4);
          if ((bool) || (d5 != 0.0D))
          {
            double d6 = localcb.l();
            double d7 = Math.max(d5 - (d1 + d6), 0.001D);
            double d8 = parambb.i();
            switch (this.b)
            {
            case 1: 
              d9 = d8 / (d7 * d5);
              if (!bool) {
                if (i == 0) {
                  break label331;
                }
              }
            case 2: 
              if (!bool)
              {
                d9 = d8 * d8 / (d7 * d7 * d5);
                if (i == 0) {
                  break label331;
                }
              }
              break;
            }
            double d9 = k.a(d8 / d7, this.b) / d5;
            paramf.a(d2 * d9, d3 * d9, d4 * d9);
          }
        }
      }
      localw.f();
    } while (i == 0);
    return paramf;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.g.a.ic

 * JD-Core Version:    0.7.0.1

 */